/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Bean;

import Action.TicketsSumSessionBeanLocal;
import Entity.Customer;
import Entity.Tickets;
import Entity.TicketsSummary;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Cyrax
 */
@ManagedBean
@RequestScoped
public class TicketsSumBean {

    @EJB
    private TicketsSumSessionBeanLocal ticketsSumSessionBean;
    private TicketsSummary tkSum;
    private List<TicketsSummary> tks;
    private Customer cu;
    private Tickets tk;

    /** Creates a new instance of TicketsSumBean */
    public TicketsSumBean() {
        tkSum = new TicketsSummary();
    }

    /**
     * @return the tkSum
     */
    public TicketsSummary getTkSum() {
        return tkSum;
    }

    /**
     * @param tkSum the tkSum to set
     */
    public void setTkSum(TicketsSummary tkSum) {
        this.tkSum = tkSum;
    }

    public List<TicketsSummary> getListAllTicketsSum() {

        tks = ticketsSumSessionBean.listAllTicketsSum();
        return tks;


    }

    /**
     * @return the cu
     */
    public Customer getCu() {
        return cu;
    }

    /**
     * @param cu the cu to set
     */
    public void setCu(Customer cu) {
        this.cu = cu;
    }

    /**
     * @return the tk
     */
    public Tickets getTk() {
        return tk;
    }

    /**
     * @param tk the tk to set
     */
    public void setTk(Tickets tk) {
        this.tk = tk;
    }
}
